<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>无流程表单</title>
    <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
    <meta name="format-detection" content="telephone=no" />
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="stylesheet" href="<s3:data name='dependencies.cmp'/><s3:data name='version'/>/css/cmp.css${data:buildversion}">
    <link rel="stylesheet" href="<s3:data name='dependencies.unflowform'/>/css/index.css${data:buildversion}">
    <link rel="stylesheet" href="<s3:data name='dependencies.form'/>/css/index.css${data:buildversion}"/>
    

    <style>
        .cmp-fullscreen{background: #fff;}
        .unflowform-btn{width:32%;}
    </style>
</head>

<body class="cmp-fullscreen">



<div id="content" class="cmp-content cmp-content-none background_white">
    <div id="title-more" class="title-more">
        <div class="title-info-bg"></div>
        <div class="title-info">
            <div id="title-info-txt" class="title-info-txt"></div>
            <div class="nav nav-border"></div>
            <div class="nav nav-background"></div>
        </div>
    </div>

    <span id="showPc_Btn" class="showPcLightForm see-icon-v5-common-switch-light-form"></span>

    <div id="segmentedControl" class="cmp-segmented-control cmp-segmented-control-inverted mytab" style="display:none;">
        <div id="tabs"></div>
    </div>

    <div id="scroll" style="overflow-y: scroll;height:100%;">
      <div  id="contentDiv" style="height:100%"> </div>
    </div>

</div>
<!--列表容器-->

<div id="formStyle_button_hint" class="formStyle_button_hint col display_none">
    <i class="circle"></i><i class="line"></i>
    <div class="content">
        <div class="text">
            <span><i18n key="unflowform.hint"></i18n><!-- 点击可返回轻表单样式 --></span>
        </div>
        <div class="btn" id="btn1"><i18n key="unflowform.hint_btn"></i18n><!-- 知道了 --></div>
        <div class="btn" id="btn2"><i18n key="unflowform.hint_btn"></i18n><!-- 知道了 --></div>
    </div>
</div>

<footer id="footer" class="cmp-bar cmp-bar-footer" style="display:none;">
    <div class="cmp-btn cmp-btn-primary unflowform-btn" id="save_new" style="display:none;"><i18n key="unflowform.save_new"></i18n></div>
    <div class="cmp-btn cmp-btn-primary unflowform-btn" id="save_copy" style="display:none;"><i18n key="unflowform.save_copy"></i18n></div>
    <div class="cmp-btn cmp-btn-primary unflowform-btn" id="save"><i18n key="unflowform.save"></i18n></div>
</footer>

</body>
    <script type="text/javascript" src="<s3:data name='dependencies.unflowform'/>/i18n/unflowform_zh_CN.js${data:buildversion}" ></script>
    <script type="text/javascript" src="<s3:data name='dependencies.cmp'/>/js/cmp-i18n.js${data:buildversion}" ></script>
    <script src="${data:dependencies.cmp}/js/cmp-ajax-fast.js${data:buildversion}"></script>
	<s3:data name='cordova' />
    <s3:import></s3:import>
	
    <script src="${data:dependencies.cmp}/js/cmp-asyncLoad.js${data:buildversion}"></script>
    <script src="${data:dependencies.cmp}/js/cmp-handWriteSignature.js${data:buildversion}"></script>
<script type="text/html" id="views_tab_tpl">
    <% for(var i = 0,len = this.length;i < len; i++){ %>
    <% var obj = this[i]; %>
    <% if(i==0) {%>
        <a class="cmp-control-item cmp-active" id="tab_<%=i %>" href="#tablelist<%=i %>">
    <%}else {%>
        <a class="cmp-control-item" id="tab_<%=i %>"  href="#tablelist<%=i %>">
    <%}%>
    <%=obj.extraMap.viewTitle %>
    </a>
    <% } %>
</script>

<s3:data name='unflowformpath.footerScript' />
<script type="text/javascript">
    var buildversion="${data:buildversion}";
    var _collaboration_path = "<s3:data name='dependencies.collaboration' />";
    var _common_v5_path = "<s3:data name='dependencies.common_v5_path' />";
    cmp.i18n.init(_unflowformpath+"/i18n/", "unflowform");
    cmp.i18n.load(_common_v5_path+"/i18n/", "Commons");
</script>

<script type="text/javascript" src="<s3:data name='dependencies.unflowform'/>/js/info.js${data:buildversion}"></script>

<script type="text/javascript" src="<s3:data name='dependencies.form'/>/js/lib/vue/vue.min.js${data:buildversion}"></script>
<script type="text/javascript" src="<s3:data name='dependencies.form'/>/js/dataService.js${data:buildversion}"></script>
<!--<script type="text/javascript" src="<s3:data name='dependencies.form'/>/js/sui.js${data:buildversion}"></script>-->
<script type="text/javascript">
    bindBackBtnEvent();
    params=cmp.href.getParam();

    if(params==undefined){
        params=cmp.href.getBackParam("back_page_params");
    }
    if(params==undefined) {
        params= GetRequest();
    }
    if(params.openFrom=="search"){ //来自全文检索
        //$s.CapForm.findSourceInfo4Index({}, {sourceId:params.moduleId}, {
        sendFastAjax("post","/seeyon/rest/capForm/findSourceInfo4Index?&option.n_a_s=1",{sourceId:params.moduleId},{
            repeat:true,   //当网络掉线时是否自动重新连接
            success: function (ret) {
                params.formId=ret.formId;
                params.contentAllId=params.moduleId;
                params.rightId=ret.rightId;
                params.moduleType=ret.moduleType;
                initParam();
            },
            error:function(e){
                var cmpHandled = cmp.errorHandler(e);
                if(cmpHandled) {
                }else {
                    cmp.notification.alert(e.message, function () {
                        cmp.href.back();
                    }, " ", cmp.i18n('unflowform.ok'));
                }
            }
        });
    }else{
        initParam();
    }


    function GetRequest() {
        var url = location.search; //获取url中"?"符后的字串
        var theRequest = new Object();
        if (url.indexOf("?") != -1) {
            var str = url.substr(1);
            strs = str.split("&");
            for(var i = 0; i < strs.length; i ++) {
                theRequest[strs[i].split("=")[0]]=unescape(strs[i].split("=")[1]);
            }
        }
        return theRequest;
    }
</script>
  <!--关联项目，关联表单接口的JS引用-->
<!--<script type="text/javascript" src="<s3:data name='dependencies.unflowform'/>/unflowform_m_api.s3js${data:buildversion}"></script>-->
<!--<script type="text/javascript" src="<s3:data name='dependencies.collaboration'/>/collaboration_m_api.s3js${data:buildversion}" ></script>-->
<!--<script type="text/javascript" src="<s3:data name='dependencies.common_v5_path'/>/cmp-resources/project/js/projectAccountList.js${data:buildversion}"></script>-->
<!--<script type="text/javascript" src="<s3:data name='dependencies.common_v5_path'/>/widget/SeeyonAttachment.s3js${data:buildversion}"></script>-->
</html>
